package com.github.tyc;

import com.github.tyc.listener.ScheduleJobBootstrapListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 类描述
 *
 * @author tyc
 * @version 1.0
 * @date 2023-12-27 15:21:52
 */
@SpringBootApplication
@EnableScheduling
@MapperScan("com.github.tyc.dao")
public class QuarzApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(QuarzApplication.class);
        application.addListeners(new ScheduleJobBootstrapListener());
        application.run(args);
    }
}
